import request from "@/api/index"

export default{
  /**
   * @description: 添加采购订单 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
   add(params){
    const url = "business/purchaseOrder/add"
    return request.post(url,params)
  },
  /**
   * @description: 编辑采购订单 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
   edit(params){
    const url = "business/purchaseOrder/edit"
    return request.post(url,params)
  },
  /**
   * @description: 删除采购订单 *代表必填
   * @param {String/Number} staffId *
   * @return {Object}
   */
   delById(params){
    const url = "business/purchaseOrder/delById"
    return request.get(url,params)
  },
  /**
   * @description: 条件查询 *代表必填
   * @param {String/Number} staffId *
   * @return {Object}
   */
  queryByCondition(params){
    const url = "business/purchaseOrder/queryByCondition"
    return request.post(url,params)
  },
  /**
   * @description: 分页查询采购订单 *代表必填
   * @param {Object} params *
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @return {Object}
   */
   queryPageByCondition(params){
    const url = "business/purchaseOrder/queryPageByCondition"
    return request.post(url,params)
  },
}
